package com.hopu.service.Impl;

import com.hopu.mapper.HtMapper;
import com.hopu.pojo.Myht;
import com.hopu.service.HtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HtServiceImpl implements HtService {
   @Autowired
   private HtMapper htMapper;


    @Override
    public List<Myht> findAllHt() {
        return htMapper.findAllHt();
    }

    @Override
    public int addHt(String htname) {
        return htMapper.addHt(htname);
    }

    @Override
    public Myht findHtByHtid(int htid) {
        return htMapper.findHtByHtid(htid);
    }

    @Override
    public int uppHt(Myht myht) {
        return htMapper.uppHt(myht);
    }
}
